package com.yuyang.wifi.activitys.web;

import android.app.Activity;
import android.os.Handler;
import android.webkit.JavascriptInterface;

import com.yuyang.wifi.base.BaseActivity;


/**
 * Created by W7566 on 2016/12/17.
 */

public class JavaScriptInterface extends BaseActivity {

    private Activity activity;
    private Handler handler = new Handler();
    private String type = "2";
    private String h5url;
    private String h5Title;
    private String h5Content;
    private String surplusPrice;
    private String h5PicUrl;
    private String shareType;
    private String h5SmallContent;
    private String h5SmallTitle;
    private String h5SmallPic;
    private String h5Path;

    public JavaScriptInterface(Activity activity) {
        this.activity = activity;
    }

    @JavascriptInterface
    public void addMethod() {
        handler.post(new Runnable() {
            @Override
            public void run() {
                //		MyToast.Show(activity, "js调用了Android方法", Toast.LENGTH_LONG);
            }
        });
    }

    @Override
    protected void initActionBar() {

    }

    @Override
    protected int getLayoutResId() {
        return 0;
    }

    @Override
    protected void initContentView() {

    }
}
